package com.wnxy.sddfp.access.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.wnxy.sddfp.access.entity.TradeLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.sddfp.common.model.BaseResult;
import com.wnxy.sddfp.common.model.dto.bank.BankCardAddDTO;
import com.wnxy.sddfp.common.model.dto.bank.SignatureDto;
import com.wnxy.sddfp.common.model.vo.borrow.BorrowSyncRecordVo;

/**
 * <p>
 * 托管系统交易记录表 服务类
 * </p>
 *
 * @author yellow docker
 * @since 2024-04-16
 */
public interface ITradeLogService extends IService<TradeLog> {

    /**
     *  代理
     *     1、日志记录
     *     2、银行访问
     * @param bankCardAddDTO
     * @return
     */
    SignatureDto proxyBindCardLog(BankCardAddDTO bankCardAddDTO) throws JsonProcessingException;

    BaseResult syncBorrowRecord(BorrowSyncRecordVo borrowSyncRecordVo);
}
